import React from 'react'
import {
    BrowserRouter as Router,
    Route
} from 'react-router-dom'
import Home from './views/home'
import Main from './views/main'

const RootRouter = () =>(
    <Router>
        <div>
            <Route exact path="/" component={Home} />
            <Route exact path="/main" component={Main} />
        </div>
    </Router>
)
export default RootRouter
